package com.homson.servicedomain.message.domain.sender;

import com.homson.servicedomain.message.domain.model.TransactionAddedEvent;
import lombok.Data;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * @author: homson_leo
 * @contact: hey_超级巨星（Homson_Leo）- 刘泓岑 1196816884@qq.com
 * @time: 2025/10/25 2:39 PM
 **/
@Data
@Component
public class TransactionEventSender implements ApplicationContextAware {
    
    private ApplicationContext applicationContext;
    
    public void sendTransactionAddedEvent(TransactionAddedEvent event){
        applicationContext.publishEvent(event);
    }
    
    
}
